﻿<Window x:Class="ParsecClient.ManageRaidGroups"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="ManageRaidGroups" WindowStyle="None" Background="Transparent" AllowsTransparency="True" ResizeMode="NoResize" Loaded="Window_Loaded"  WindowStartupLocation="CenterOwner" Height="500" Width="600" ShowInTaskbar="False">
    <Border CornerRadius="3" BorderBrush="#FF444444" BorderThickness="1" Margin="15">
        <DockPanel Margin="10" LastChildFill="False">
            <StackPanel DockPanel.Dock="Top">
                <TextBlock FontSize="18" FontWeight="Normal" Foreground="#FF000000">Manage Raid Groups</TextBlock>
                <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Margin="10 20 0 0">
                    <TextBlock VerticalAlignment="Center" Padding="0,0,10,0" Foreground="#FF000000">Name</TextBlock>
                    <TextBox Name="txtRaidGroupName" Width="100" Style="{StaticResource PlainTextBox}"></TextBox>
                    <TextBlock VerticalAlignment="Center" Padding="10,0" Foreground="#FF000000">Password</TextBlock>
                    <TextBox Name="txtRaidGroupPass" Width="100" Style="{StaticResource PlainTextBox}"></TextBox>
                    <Button Name="btnAdd" Margin="8 0 8 0" Padding="2" Width="60" Click="btnAdd_Click" Style="{StaticResource PlainButton}">Add</Button>
                    <Button Name="btnCreate" Margin="0 0 0 0" Padding="2" Width="60" Click="btnCreate_Click" Style="{StaticResource PlainButton}">Create</Button>
                </StackPanel>
                <StackPanel Orientation="Horizontal" Margin="10 10 0 0">
                    <ListBox Name="lstGroups" Width="200" Height="280" Margin="0 20 0 0" SelectionChanged="lstGroups_SelectionChanged" Style="{StaticResource PlainListBox}"></ListBox>
                    <Grid Margin="20 20 0 0">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"></RowDefinition>
                            <RowDefinition Height="Auto"></RowDefinition>
                            <RowDefinition Height="Auto"></RowDefinition>
                            <RowDefinition Height="Auto"></RowDefinition>
                            <RowDefinition Height="Auto"></RowDefinition>
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"></ColumnDefinition>
                            <ColumnDefinition Width="180"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <Label Grid.Row="0" Grid.Column="0" Foreground="#FF000000">Name</Label>
                        <Label Grid.Row="1" Grid.Column="0" Margin="0 4 0 0" Foreground="#FF000000">Password</Label>
                        <Label Grid.Row="2" Grid.Column="0" Margin="0 4 0 0" Foreground="#FF000000">Admin Password</Label>
                        <Label Grid.Row="0" Grid.Column="1" Name="txtCurrentName" IsEnabled="False" Margin="10 0 0 0" Foreground="#FF000000"></Label>
                        <Label Grid.Row="1" Grid.Column="1" Name="txtCurrentPassword" IsEnabled="False" Margin="10 4 0 0" Foreground="#FF000000"></Label>
                        <Label Grid.Row="2" Grid.Column="1" Name="txtCurrentAdminPassword" IsEnabled="False" Margin="10 4 0 0" Foreground="#FF000000"></Label>
                        <Button Name="btnRemoveGroup" Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2" Margin="0 10 0 0" Click="btnRemoveGroup_Click" Style="{StaticResource PlainButton}">Remove Group From Your List</Button>
                        <Button Name="btnDeleteGroup" Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="2" Margin="0 10 0 0" Click="btnDeleteGroup_Click" Style="{StaticResource PlainButton}">Delete Group From Server</Button>
                    </Grid>
                </StackPanel>
            </StackPanel>
            <StackPanel Orientation="Horizontal" DockPanel.Dock="Bottom" HorizontalAlignment="Right">
                <Button Name="btnDone" Padding="2" Width="60" Click="btnDone_Click" Style="{StaticResource PlainButton}">Done</Button>
            </StackPanel>
        </DockPanel>
        <Border.Effect>
            <DropShadowEffect BlurRadius="15" ShadowDepth="0" Opacity=".8" />
        </Border.Effect>
        <Border.Background>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FFF2F2F2" Offset="0" />
                <GradientStop Color="White" Offset="1" />
            </LinearGradientBrush>
        </Border.Background>
    </Border>
</Window>
